<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
    <script type="importmap">
        {
          "imports": {
            "vue": "https://unpkg.com/vue@3.3.4/dist/vue.esm-browser.js",
            "vue/server-renderer": "https://unpkg.com/@vue/server-renderer@3.3.4/dist/server-renderer.esm-browser.js"
          }
        }
    </script>
</head>

<body>
<!--跟 Vue 说 Hello World！-->
<script type="module">
    import {createApp, version} from 'vue'

    createApp({
        data() {
            return {
                message: 'Hello World!', version
            }
        },
        methods: {
            pf(i) {
                console.log(i * i)
            }
        }
    }).mount('#app')
</script>

<div id="app">
    <button @click="pf(6)">pf(6)</button>
    <h2>vue options api</h2>
    <h1>{{ message }} -- {{version}}</h1>
</div>
</body>
</html>
